import { AxiosRequestConfig } from 'axios'
import axios from '../utils/request'
import base from './base'


// https://www.dota2.com.cn/datafeed/heroList?task=herolist //英雄列表
// https://www.dota2.com.cn/datafeed/hero?hero_id=103 //英雄
// https://www.dota2.com.cn/itemscategory/json //物品分类
// https://www.dota2.com.cn/items/json?callback=HeropediaDFReceive //物品列表

const wiki = {
  heroList() {
    return axios.get(`${base.wiki}/datafeed/heroList`)
  },
  hero(params: any) {
    return axios.get(`${base.wiki}/datafeed/hero`,params)
  },
  itemscategory() {
    return axios.get(`${base.wiki}/itemscategory/json`)
  },
  items() {
    return axios.get(`${base.wiki}/items/json`)
  }
}
export default wiki